var extendOwn = require("./11_extendOwn");
var isMatch = require("./05_isMatch");

function matcher(attrs) {
  attrs = extendOwn({}, attrs);
  return function (obj) {
    return isMatch(obj, attrs);
  };
}

module.exports = matcher;
